﻿<table>
            
                  <tr><th  style="background-color: #555;color:#fff">REPORTE DE ASISTENCIAS</th> </tr>
                  <tr><th>DOCENTE: <th><?php echo $profesor ?></th> </tr>
                  <tr><th>DESDE:</th><th><?php echo $start_date ?></th> </tr> 
                  <tr><th>HASTA:</th><th> <?php echo $end_date ?></th> </tr>   

                  <tr><th>CLASE</th>
                  <th>FECHA</th>
                  <th>INICIO</th>
                  <th>FIN</th>
                  <th>ENTRADA</th>
                  <th>SALIDA</th>
                  <th>HORA PROGRAMADA</th>  
                  <th>HORA ASISTIDAS</th></tr>  
<?php
$cont = 0;
$ban = 0;
$len = count($datos);
//for ($i=0; $i < $len ; $i++) { 
  # code...
  # code...
           /* if($ban == 1){
                $var = $var2;
            }else{
              $var = $datos[$i];
            }*/

              foreach ($datos as $dato ) {
                         // $cant = count($dato);
                          
                                                               echo '<td>';
                                                              foreach ($dato as $d) {
                                                                    
                                                                    echo $d;
                                                                    echo '<td>';
                                                                    
                                                              }
                                                            if($cont >=30){
                                                                    $var = $d;
                                                                    $ban = 1;
                                                                    break;
                                                              }
                                                              $cont++;

                                                              echo '</td></tr>' ;
                                                        }
              /* if($ban == 0){
                  break;
               }  */                                       
              
//}  
      /*
if($ban == 1){
  $cont = 0;
  
  $ban =0;
  $var2 = $datos[$var];
  for ($i=0; $i < $len ; $i++) { 
                
                     foreach ($datos as $dato ) {
                        
                                                if($var2 == $dato){
                                                               echo '<td>';
                                                              foreach ($var2 as $d) {
                                                                    
                                                                    echo $d;
                                                                    echo '<td>';
                                                                    
                                                              }
                                                             $ban=0;
                                                            if($cont >=30){
                                                                    $var2 = $d;
                                                                    $ban = 1;
                                                                    break;
                                                              }
                                                              $cont++;

                                                              echo '</td></tr>' ;
                                                        }
                                                  }
                                               
           $cont = 0;

           if($ban == 0){   

            break; 
          }
} */
?></table>
